package com.ellricky.teacher.ui.mycourse.course

import androidx.fragment.app.Fragment
import com.ellricky.baselib.ui.base.BaseTabVpActivity
import com.ellricky.teacher.FRAGMENT_COURSE_EXPERIENCE
import com.ellricky.teacher.FRAGMENT_COURSE_TEMP
import com.ellricky.teacher.FRAGMENT_COURSE_VIP
import com.ellricky.teacher.R
import java.util.*

class MyCourseListActivity : BaseTabVpActivity() {
    override fun getFragmentList(): MutableList<Fragment> {
        val fragments = ArrayList<Fragment>()
        fragments.add(CourseFragment.newInstance(FRAGMENT_COURSE_EXPERIENCE))
        fragments.add(VipCourseFragment.newInstance(FRAGMENT_COURSE_VIP))
        fragments.add(CourseFragment.newInstance(FRAGMENT_COURSE_TEMP))
        return fragments
    }

    override fun getTabTitleList(): MutableList<String> {
        val tList = ArrayList<String>()
        tList.add(getString(R.string.tc_course_experience))
        tList.add(getString(R.string.tc_course_vip))
        tList.add(getString(R.string.tc_course_temp))
        return  tList
    }

    override fun getTitleRes(): Int {
        return R.string.tc_my_course
    }

}
